<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$smarty.const.Site_Name}</title>
<link href="css/public.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="Js/menu.js"></script>
<script type="text/javascript" src="Js/user.js"></script>
<script type="text/javascript" src="Js/exec.js"></script>
</head>

<body>
{include file="header.html"}
<div class="center">
	<div class="left">{include file="menu.html"}</div>
	<div class="right">
		<div class="Nav">
			<ul>
				{if $BTP[$get.open].add}<li><a href="{write_url url=$thisurl action='add' DEL='ALL'}" {CLASS_COLOR user=$get.open add=$get.action CLASS='this'}>添加管理员</a></li>{/if}
				{if $BTP[$get.open].show}<li><a href="{write_url url=$thisurl action='show' DEL='ALL'}" {CLASS_COLOR user=$get.open show=$get.action CLASS='this'}>管理员列表</a></li>{/if}
			</ul>
			<span class="clear"></span>
		</div>
		<div class="append">
			<form action="{write_url url=$thisurl go='append'}" method="post">
				<table width="100%" border="0" cellspacing="1" cellpadding="0" id="tab_show">
					<tr><th colspan="2">管理员通讯录</th></tr>
					<tr>
						<td align="right" width="40%">管理员账号</td>
						<td>{$edit.account}</td>
					</tr>
					<tr>
						<td align="right">真实姓名</td>
						<td>{$edit.name}</td>
					</tr>
					<tr>
						<td align="right">昵称</td>
						<td>{$edit.nickname}</td>
					</tr>
					<tr>
						<td align="right">编号</td>
						<td>{$edit.number}</td>
					</tr>
					<tr class='NO_TAB_SHOW'>
						<td align="right" class="Need">通讯</td>
						<td>
							<a href="javascript:;" class="AddTX" onclick="Add_NAB('NAB');">添加新的通讯</a>
							<ul class="NAB" id="NAB">
								{foreach item=nB from=$Nab}
								<li>
									<select name="type[]" onchange="Up_NAB(this)">
										<option value="0">请选择通讯类型</option>
										{foreach item=aon key=nabKey from=$NAB}<option value="{$nabKey}" {selected val=$nB.type str=$nabKey}>{$aon}</option>{/foreach}
									</select>
									<input name="type_name[]" type="hidden" value="{$nB.type_name}" />
									<input name="content[]" type="text" value="{$nB.content}" />&nbsp;<a href="javascript:;" onclick="Del_NAB('NAB' , this)">删除</a>
								</li>
								{/foreach}
							</ul>
						</td>
					</tr>
					<tr><th colspan="2" align="center"><input type="submit" value=" 提 交 " /> <input type="reset" value=" 重 填 " /></th></tr>
				</table>
			</form>
		</div>	
	</div>
	<b class="clear"></b>
</div>
<script type="text/javascript">var NAB_ONE_LI_INNERHTML = '<select name="type[]" onchange="Up_NAB(this)"><option value="0">请选择通讯类型</option>{foreach item=aon key=nabKey from=$NAB}<option value="{$nabKey}">{$aon}</option>{/foreach}</select><input name="type_name[]" type="hidden" value="" />&nbsp;<input name="content[]" type="text" value="" />&nbsp;<a href="javascript:;" onclick="Del_NAB(\'NAB\' , this)">删除</a>';</script>
</body>
</html>